package com.cn.why.film.filmindex.repository;

import com.cn.why.film.filmindex.entity.ShopCar;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
 * 购物车service
 */
public interface ShopCarRepository extends JpaRepository<ShopCar,Integer> {
    @Query(value = "select * from shop_car where phone_number = ?1",nativeQuery = true)
    List<ShopCar> findOneShopCar(Integer phoneNumber);
}
